package com.zhigongtech.extension.entry;

import java.io.Serializable;

import lombok.Data;



/**
 * Entity支持类
 * @author ThinkGem
 * @version 2014-05-16
 */
@Data
public abstract class BaseEntity<T> implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 实体编号（唯一标识）
	 */
	protected String id;
	
	public BaseEntity() {
		
	}
	
	public BaseEntity(String id) {
		super();
		this.id = id;
	}

    protected Serializable pkVal() {
        return this.id;
    }
	/**
	 * 删除标记（0：正常；1：删除；2：审核；）
	 */
	public static final String DEL_FLAG_NORMAL = "0";
	public static final String DEL_FLAG_DELETE = "1";
	public static final String DEL_FLAG_AUDIT = "2";
	
}
